.class public Lcom/google/android/exoplayer/l;
.super Lcom/google/android/exoplayer/MediaCodecTrackRenderer;
.source "MediaCodecAudioTrackRenderer.java"

# interfaces
.implements Lcom/google/android/exoplayer/k;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x10
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/android/exoplayer/l$d;
    }
.end annotation


# instance fields
.field private final P:Lcom/google/android/exoplayer/l$d;

.field private final Q:Lcom/google/android/exoplayer/audio/AudioTrack;

.field private R:Z

.field private S:Landroid/media/MediaFormat;

.field private T:I

.field private U:J

.field private V:Z

.field private W:Z

.field private X:J


# direct methods
.method public constructor <init>(Lcom/google/android/exoplayer/r;Lcom/google/android/exoplayer/m;Lcom/google/android/exoplayer/drm/b;ZLandroid/os/Handler;Lcom/google/android/exoplayer/l$d;Lcom/google/android/exoplayer/audio/a;I)V
    .locals 0

    .line 1
    invoke-direct/range {p0 .. p6}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;-><init>(Lcom/google/android/exoplayer/r;Lcom/google/android/exoplayer/m;Lcom/google/android/exoplayer/drm/b;ZLandroid/os/Handler;Lcom/google/android/exoplayer/MediaCodecTrackRenderer$d;)V

    .line 2
    iput-object p6, p0, Lcom/google/android/exoplayer/l;->P:Lcom/google/android/exoplayer/l$d;

    const/4 p1, 0x0

    .line 3
    iput p1, p0, Lcom/google/android/exoplayer/l;->T:I

    .line 4
    new-instance p1, Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-direct {p1, p7, p8}, Lcom/google/android/exoplayer/audio/AudioTrack;-><init>(Lcom/google/android/exoplayer/audio/a;I)V

    iput-object p1, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    return-void
.end method

.method static synthetic a(Lcom/google/android/exoplayer/l;)Lcom/google/android/exoplayer/l$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/google/android/exoplayer/l;->P:Lcom/google/android/exoplayer/l$d;

    return-object p0
.end method

.method private a(IJJ)V
    .locals 9

    .line 66
    iget-object v0, p0, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->r:Landroid/os/Handler;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/google/android/exoplayer/l;->P:Lcom/google/android/exoplayer/l$d;

    if-eqz v1, :cond_0

    .line 67
    new-instance v1, Lcom/google/android/exoplayer/l$c;

    move-object v2, v1

    move-object v3, p0

    move v4, p1

    move-wide v5, p2

    move-wide v7, p4

    invoke-direct/range {v2 .. v8}, Lcom/google/android/exoplayer/l$c;-><init>(Lcom/google/android/exoplayer/l;IJJ)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method private a(Lcom/google/android/exoplayer/audio/AudioTrack$InitializationException;)V
    .locals 2

    .line 62
    iget-object v0, p0, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->r:Landroid/os/Handler;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/google/android/exoplayer/l;->P:Lcom/google/android/exoplayer/l$d;

    if-eqz v1, :cond_0

    .line 63
    new-instance v1, Lcom/google/android/exoplayer/l$a;

    invoke-direct {v1, p0, p1}, Lcom/google/android/exoplayer/l$a;-><init>(Lcom/google/android/exoplayer/l;Lcom/google/android/exoplayer/audio/AudioTrack$InitializationException;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method

.method private a(Lcom/google/android/exoplayer/audio/AudioTrack$WriteException;)V
    .locals 2

    .line 64
    iget-object v0, p0, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->r:Landroid/os/Handler;

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/google/android/exoplayer/l;->P:Lcom/google/android/exoplayer/l$d;

    if-eqz v1, :cond_0

    .line 65
    new-instance v1, Lcom/google/android/exoplayer/l$b;

    invoke-direct {v1, p0, p1}, Lcom/google/android/exoplayer/l$b;-><init>(Lcom/google/android/exoplayer/l;Lcom/google/android/exoplayer/audio/AudioTrack$WriteException;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void
.end method


# virtual methods
.method public a()J
    .locals 5

    .line 23
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {p0}, Lcom/google/android/exoplayer/l;->h()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(Z)J

    move-result-wide v0

    const-wide/high16 v2, -0x8000000000000000L

    cmp-long v4, v0, v2

    if-eqz v4, :cond_1

    .line 24
    iget-boolean v2, p0, Lcom/google/android/exoplayer/l;->V:Z

    if-eqz v2, :cond_0

    goto :goto_0

    :cond_0
    iget-wide v2, p0, Lcom/google/android/exoplayer/l;->U:J

    .line 25
    invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->max(JJ)J

    move-result-wide v0

    :goto_0
    iput-wide v0, p0, Lcom/google/android/exoplayer/l;->U:J

    const/4 v0, 0x0

    .line 26
    iput-boolean v0, p0, Lcom/google/android/exoplayer/l;->V:Z

    .line 27
    :cond_1
    iget-wide v0, p0, Lcom/google/android/exoplayer/l;->U:J

    return-wide v0
.end method

.method protected a(Lcom/google/android/exoplayer/m;Lcom/google/android/exoplayer/o;Z)Lcom/google/android/exoplayer/e;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;
        }
    .end annotation

    .line 6
    iget-object v0, p2, Lcom/google/android/exoplayer/o;->b:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/google/android/exoplayer/l;->a(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 7
    invoke-interface {p1}, Lcom/google/android/exoplayer/m;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 p1, 0x1

    .line 8
    iput-boolean p1, p0, Lcom/google/android/exoplayer/l;->R:Z

    .line 9
    new-instance p1, Lcom/google/android/exoplayer/e;

    invoke-direct {p1, v0, v1}, Lcom/google/android/exoplayer/e;-><init>(Ljava/lang/String;Z)V

    return-object p1

    .line 10
    :cond_0
    iput-boolean v1, p0, Lcom/google/android/exoplayer/l;->R:Z

    .line 11
    invoke-super {p0, p1, p2, p3}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->a(Lcom/google/android/exoplayer/m;Lcom/google/android/exoplayer/o;Z)Lcom/google/android/exoplayer/e;

    move-result-object p1

    return-object p1
.end method

.method public a(F)V
    .locals 1

    .line 28
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0, p1}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(F)V

    return-void
.end method

.method public a(ILjava/lang/Object;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/ExoPlaybackException;
        }
    .end annotation

    const/4 v0, 0x1

    if-eq p1, v0, :cond_1

    const/4 v0, 0x2

    if-eq p1, v0, :cond_0

    .line 59
    invoke-super {p0, p1, p2}, Lcom/google/android/exoplayer/u;->a(ILjava/lang/Object;)V

    goto :goto_0

    .line 60
    :cond_0
    iget-object p1, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    check-cast p2, Landroid/media/PlaybackParams;

    invoke-virtual {p1, p2}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(Landroid/media/PlaybackParams;)V

    goto :goto_0

    .line 61
    :cond_1
    iget-object p1, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    check-cast p2, Ljava/lang/Float;

    invoke-virtual {p2}, Ljava/lang/Float;->floatValue()F

    move-result p2

    invoke-virtual {p1, p2}, Lcom/google/android/exoplayer/audio/AudioTrack;->b(F)V

    :goto_0
    return-void
.end method

.method protected a(Landroid/media/MediaCodec;ZLandroid/media/MediaFormat;Landroid/media/MediaCrypto;)V
    .locals 4

    const-string p2, "mime"

    .line 13
    invoke-virtual {p3, p2}, Landroid/media/MediaFormat;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 14
    iget-boolean v1, p0, Lcom/google/android/exoplayer/l;->R:Z

    const/4 v2, 0x0

    const/4 v3, 0x0

    if-eqz v1, :cond_0

    const-string v1, "audio/raw"

    .line 15
    invoke-virtual {p3, p2, v1}, Landroid/media/MediaFormat;->setString(Ljava/lang/String;Ljava/lang/String;)V

    .line 16
    invoke-virtual {p1, p3, v3, p4, v2}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V

    .line 17
    invoke-virtual {p3, p2, v0}, Landroid/media/MediaFormat;->setString(Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    iput-object p3, p0, Lcom/google/android/exoplayer/l;->S:Landroid/media/MediaFormat;

    goto :goto_0

    .line 19
    :cond_0
    invoke-virtual {p1, p3, v3, p4, v2}, Landroid/media/MediaCodec;->configure(Landroid/media/MediaFormat;Landroid/view/Surface;Landroid/media/MediaCrypto;I)V

    .line 20
    iput-object v3, p0, Lcom/google/android/exoplayer/l;->S:Landroid/media/MediaFormat;

    :goto_0
    return-void
.end method

.method protected a(Landroid/media/MediaFormat;)V
    .locals 2

    .line 21
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->S:Landroid/media/MediaFormat;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 22
    :goto_0
    iget-object v1, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    if-eqz v0, :cond_1

    iget-object p1, p0, Lcom/google/android/exoplayer/l;->S:Landroid/media/MediaFormat;

    :cond_1
    invoke-virtual {v1, p1, v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(Landroid/media/MediaFormat;Z)V

    return-void
.end method

.method protected a(JJLandroid/media/MediaCodec;Ljava/nio/ByteBuffer;Landroid/media/MediaCodec$BufferInfo;IZ)Z
    .locals 18
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/ExoPlaybackException;
        }
    .end annotation

    move-object/from16 v7, p0

    move-object/from16 v0, p5

    move-object/from16 v8, p7

    move/from16 v9, p8

    .line 29
    iget-boolean v1, v7, Lcom/google/android/exoplayer/l;->R:Z

    const/4 v10, 0x0

    const/4 v11, 0x1

    if-eqz v1, :cond_0

    iget v1, v8, Landroid/media/MediaCodec$BufferInfo;->flags:I

    and-int/lit8 v1, v1, 0x2

    if-eqz v1, :cond_0

    .line 30
    invoke-virtual {v0, v9, v10}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    return v11

    :cond_0
    if-eqz p9, :cond_1

    .line 31
    invoke-virtual {v0, v9, v10}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    .line 32
    iget-object v0, v7, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->h:Lcom/google/android/exoplayer/c;

    iget v1, v0, Lcom/google/android/exoplayer/c;->f:I

    add-int/2addr v1, v11

    iput v1, v0, Lcom/google/android/exoplayer/c;->f:I

    .line 33
    iget-object v0, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->c()V

    return v11

    .line 34
    :cond_1
    iget-object v1, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v1}, Lcom/google/android/exoplayer/audio/AudioTrack;->g()Z

    move-result v1

    const/4 v2, 0x3

    if-nez v1, :cond_3

    .line 35
    :try_start_0
    iget v1, v7, Lcom/google/android/exoplayer/l;->T:I

    if-eqz v1, :cond_2

    .line 36
    iget-object v1, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    iget v3, v7, Lcom/google/android/exoplayer/l;->T:I

    invoke-virtual {v1, v3}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(I)I

    goto :goto_0

    .line 37
    :cond_2
    iget-object v1, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v1}, Lcom/google/android/exoplayer/audio/AudioTrack;->f()I

    move-result v1

    iput v1, v7, Lcom/google/android/exoplayer/l;->T:I

    .line 38
    invoke-virtual {v7, v1}, Lcom/google/android/exoplayer/l;->b(I)V

    .line 39
    :goto_0
    iput-boolean v10, v7, Lcom/google/android/exoplayer/l;->W:Z
    :try_end_0
    .catch Lcom/google/android/exoplayer/audio/AudioTrack$InitializationException; {:try_start_0 .. :try_end_0} :catch_0

    .line 40
    invoke-virtual/range {p0 .. p0}, Lcom/google/android/exoplayer/u;->f()I

    move-result v1

    if-ne v1, v2, :cond_5

    .line 41
    iget-object v1, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v1}, Lcom/google/android/exoplayer/audio/AudioTrack;->i()V

    goto :goto_2

    :catch_0
    move-exception v0

    .line 42
    invoke-direct {v7, v0}, Lcom/google/android/exoplayer/l;->a(Lcom/google/android/exoplayer/audio/AudioTrack$InitializationException;)V

    .line 43
    new-instance v1, Lcom/google/android/exoplayer/ExoPlaybackException;

    invoke-direct {v1, v0}, Lcom/google/android/exoplayer/ExoPlaybackException;-><init>(Ljava/lang/Throwable;)V

    throw v1

    .line 44
    :cond_3
    iget-boolean v1, v7, Lcom/google/android/exoplayer/l;->W:Z

    .line 45
    iget-object v3, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v3}, Lcom/google/android/exoplayer/audio/AudioTrack;->e()Z

    move-result v3

    iput-boolean v3, v7, Lcom/google/android/exoplayer/l;->W:Z

    if-eqz v1, :cond_5

    if-nez v3, :cond_5

    .line 46
    invoke-virtual/range {p0 .. p0}, Lcom/google/android/exoplayer/u;->f()I

    move-result v1

    if-ne v1, v2, :cond_5

    .line 47
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v1

    iget-wide v3, v7, Lcom/google/android/exoplayer/l;->X:J

    sub-long v5, v1, v3

    .line 48
    iget-object v1, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v1}, Lcom/google/android/exoplayer/audio/AudioTrack;->b()J

    move-result-wide v1

    const-wide/16 v3, -0x1

    cmp-long v12, v1, v3

    if-nez v12, :cond_4

    goto :goto_1

    :cond_4
    const-wide/16 v3, 0x3e8

    .line 49
    div-long/2addr v1, v3

    move-wide v3, v1

    .line 50
    :goto_1
    iget-object v1, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v1}, Lcom/google/android/exoplayer/audio/AudioTrack;->a()I

    move-result v2

    move-object/from16 v1, p0

    invoke-direct/range {v1 .. v6}, Lcom/google/android/exoplayer/l;->a(IJJ)V

    .line 51
    :cond_5
    :goto_2
    :try_start_1
    iget-object v12, v7, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    iget v14, v8, Landroid/media/MediaCodec$BufferInfo;->offset:I

    iget v15, v8, Landroid/media/MediaCodec$BufferInfo;->size:I

    iget-wide v1, v8, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    move-object/from16 v13, p6

    move-wide/from16 v16, v1

    invoke-virtual/range {v12 .. v17}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(Ljava/nio/ByteBuffer;IIJ)I

    move-result v1

    .line 52
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    iput-wide v2, v7, Lcom/google/android/exoplayer/l;->X:J
    :try_end_1
    .catch Lcom/google/android/exoplayer/audio/AudioTrack$WriteException; {:try_start_1 .. :try_end_1} :catch_1

    and-int/lit8 v2, v1, 0x1

    if-eqz v2, :cond_6

    .line 53
    invoke-virtual/range {p0 .. p0}, Lcom/google/android/exoplayer/l;->y()V

    .line 54
    iput-boolean v11, v7, Lcom/google/android/exoplayer/l;->V:Z

    :cond_6
    and-int/lit8 v1, v1, 0x2

    if-eqz v1, :cond_7

    .line 55
    invoke-virtual {v0, v9, v10}, Landroid/media/MediaCodec;->releaseOutputBuffer(IZ)V

    .line 56
    iget-object v0, v7, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->h:Lcom/google/android/exoplayer/c;

    iget v1, v0, Lcom/google/android/exoplayer/c;->e:I

    add-int/2addr v1, v11

    iput v1, v0, Lcom/google/android/exoplayer/c;->e:I

    return v11

    :cond_7
    return v10

    :catch_1
    move-exception v0

    .line 57
    invoke-direct {v7, v0}, Lcom/google/android/exoplayer/l;->a(Lcom/google/android/exoplayer/audio/AudioTrack$WriteException;)V

    .line 58
    new-instance v1, Lcom/google/android/exoplayer/ExoPlaybackException;

    invoke-direct {v1, v0}, Lcom/google/android/exoplayer/ExoPlaybackException;-><init>(Ljava/lang/Throwable;)V

    throw v1
.end method

.method protected a(Lcom/google/android/exoplayer/m;Lcom/google/android/exoplayer/o;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/MediaCodecUtil$DecoderQueryException;
        }
    .end annotation

    .line 2
    iget-object v0, p2, Lcom/google/android/exoplayer/o;->b:Ljava/lang/String;

    .line 3
    invoke-static {v0}, Lcom/google/android/exoplayer/util/f;->b(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_2

    const-string v1, "audio/x-unknown"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 4
    invoke-virtual {p0, v0}, Lcom/google/android/exoplayer/l;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p1}, Lcom/google/android/exoplayer/m;->a()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    .line 5
    :cond_0
    invoke-interface {p1, p2, v2}, Lcom/google/android/exoplayer/m;->a(Lcom/google/android/exoplayer/o;Z)Lcom/google/android/exoplayer/e;

    move-result-object p1

    if-eqz p1, :cond_2

    :cond_1
    const/4 v2, 0x1

    :cond_2
    return v2
.end method

.method protected a(Ljava/lang/String;)Z
    .locals 1

    .line 12
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0, p1}, Lcom/google/android/exoplayer/audio/AudioTrack;->a(Ljava/lang/String;)Z

    move-result p1

    return p1
.end method

.method protected b(I)V
    .locals 0

    return-void
.end method

.method protected d(J)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/ExoPlaybackException;
        }
    .end annotation

    .line 1
    invoke-super {p0, p1, p2}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->d(J)V

    .line 2
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->k()V

    .line 3
    iput-wide p1, p0, Lcom/google/android/exoplayer/l;->U:J

    const/4 p1, 0x1

    .line 4
    iput-boolean p1, p0, Lcom/google/android/exoplayer/l;->V:Z

    return-void
.end method

.method protected e()Lcom/google/android/exoplayer/k;
    .locals 0

    return-object p0
.end method

.method protected h()Z
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->h()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->e()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method protected i()Z
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->e()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-super {p0}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->i()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method protected k()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/android/exoplayer/ExoPlaybackException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    iput v0, p0, Lcom/google/android/exoplayer/l;->T:I

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->j()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    invoke-super {p0}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->k()V

    return-void

    :catchall_0
    move-exception v0

    invoke-super {p0}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->k()V

    .line 4
    throw v0
.end method

.method protected m()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->m()V

    .line 2
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->i()V

    return-void
.end method

.method protected n()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->h()V

    .line 2
    invoke-super {p0}, Lcom/google/android/exoplayer/MediaCodecTrackRenderer;->n()V

    return-void
.end method

.method protected v()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/google/android/exoplayer/l;->Q:Lcom/google/android/exoplayer/audio/AudioTrack;

    invoke-virtual {v0}, Lcom/google/android/exoplayer/audio/AudioTrack;->d()V

    return-void
.end method

.method protected y()V
    .locals 0

    return-void
.end method
